package com.dongjiantong.insurance.model;

import com.dongjiantong.mybatis.BaseEntity;
import lombok.Data;

import javax.persistence.Table;

@Data
@Table(name = "insurance_area")
public class InsuranceArea extends BaseEntity {
    /**
     * 区域码
     */
    private String area_code;
    /**
     * 省id
     */
    private Integer province_id;
    /**
     * 省名字
     */
    private String province;
    /**
     * 市id
     */
    private Integer city_id;
    /**
     * 市名字
     */
    private String city;
    /**
     * 县id
     */
    private Integer region_id;
    /**
     * 县名字
     */
    private String region;
    /**
     * 镇id
     */
    private Integer street_id;
    /**
     * 镇名字
     */
    private String street;
    /**
     * 村id
     */
    private Integer village_id;
    /**
     * 村名字
     */
    private String village;
    /**
     * 保险人员id
     */
    private long user_id;
    /**
     * 保险人员姓名
     */
    private String user_name;


    public InsuranceArea(String area_code) {
        this.area_code = area_code;
    }

    public InsuranceArea() {
    }
}